Release 10.1A: OpenEdge Data Management:
DataServer for Microsoft SQL Server
Zero-length character strings
When you use the Unknown value (
?) in aWHEREclause with the DataServer, the Unknown value (?) satisfies only the equals (=) or not equal (<>) operator. You can also use a zero-length character string in aWHEREclause. The Unknown value (?) and zero-length character string are not the same. The Unknown value (?) translates to aNULL, which is a special marker in a data source that supportsNULLs used to represent missing information. On the other hand, zero-length strings and blank columns contain actual values. Both of the following statements find the firstcustomerrecord with a zero-length string in theaddress2field. Notice the space between the quotation marks in the first statement:
Although “” and “ ” evaluate the same way in a
WHEREclause, they have different results when you use them with theBEGINSfunction. For example, the following statement retrieves allcustomernamesexcept those that have the Unknown value (?):
The following statement uses “ ” to retrieve only those names that begin with a space:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |